from . import index_blue
from flask import render_template, current_app
import logging


@index_blue.route("/favicon.ico")
def set_favicon():
    return current_app.send_static_file('index/favicon.ico')


@index_blue.route("/")
def index():
    # 测试
    # logging.debug("This is a debug log.")
    # logging.info("This is a info log.")
    # logging.warning("This is a warning log.")
    # logging.error("This is a error log.")
    # logging.critical("This is a critical log.")
    return render_template("index/index.html")
